package com.numberone.master.modules.profit.dao;

import org.apache.ibatis.annotations.Param;

import com.numberone.master.common.persistence.CrudDao;
import com.numberone.master.common.persistence.annotation.MyBatisDao;
import com.numberone.master.modules.profit.entity.AccountInfo;

/**
 * 账户管理DAO接口
 * @author ck
 * @version 2018-03-07
 */
@MyBatisDao
public interface AccountInfoDao extends CrudDao<AccountInfo> {
	/**
	 * 根据代理商获取账户信息
	 * @param office_id 代理商id
	 * @return
	 */
	public AccountInfo getBalance(@Param("officeId")String office_id);
	
	
	public Double getTaskMoney(@Param("officeId")String office_id);
	
	public Double getArrivalMoney(@Param("officeId")String office_id);
	
	AccountInfo getAccountByOfficeId(@Param("officeId")String officeId);
}